<?php

namespace app\shop\controller;

use think\Request;
use think\Exception;
use app\shop\model\PaymentType as PaymentTypeModel;

class Paymenttype extends \ShopController
{
    /**
     * 显示资源列表
     *
     * @return \think\Response
     */
    public function index()
    {
        $PaymentTypeModel = new PaymentTypeModel();

        try {
            $data = $PaymentTypeModel->where([
                'is_delete' => 0,
            ])->order('pdt_id')->select();

            $this->successTerminate($data);
        } catch (Exception $e) {
            $this->serverErrorTerminate($e->getMessage());
        }
    }


}